﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010EF RID: 4335
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SearchPlayerScRsp : IMessage<SearchPlayerScRsp>, IMessage, IEquatable<SearchPlayerScRsp>, IDeepCloneable<SearchPlayerScRsp>, IBufferMessage
	{
		// Token: 0x170036F3 RID: 14067
		// (get) Token: 0x0600C20A RID: 49674 RVA: 0x0020D3EF File Offset: 0x0020B5EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SearchPlayerScRsp> Parser
		{
			get
			{
				return SearchPlayerScRsp._parser;
			}
		}

		// Token: 0x170036F4 RID: 14068
		// (get) Token: 0x0600C20B RID: 49675 RVA: 0x0020D3F6 File Offset: 0x0020B5F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SearchPlayerScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170036F5 RID: 14069
		// (get) Token: 0x0600C20C RID: 49676 RVA: 0x0020D408 File Offset: 0x0020B608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SearchPlayerScRsp.Descriptor;
			}
		}

		// Token: 0x0600C20D RID: 49677 RVA: 0x0020D40F File Offset: 0x0020B60F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SearchPlayerScRsp()
		{
		}

		// Token: 0x0600C20E RID: 49678 RVA: 0x0020D430 File Offset: 0x0020B630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SearchPlayerScRsp(SearchPlayerScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.simpleInfoList_ = other.simpleInfoList_.Clone();
			this.resultUidList_ = other.resultUidList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C20F RID: 49679 RVA: 0x0020D482 File Offset: 0x0020B682
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SearchPlayerScRsp Clone()
		{
			return new SearchPlayerScRsp(this);
		}

		// Token: 0x170036F6 RID: 14070
		// (get) Token: 0x0600C210 RID: 49680 RVA: 0x0020D48A File Offset: 0x0020B68A
		// (set) Token: 0x0600C211 RID: 49681 RVA: 0x0020D492 File Offset: 0x0020B692
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170036F7 RID: 14071
		// (get) Token: 0x0600C212 RID: 49682 RVA: 0x0020D49B File Offset: 0x0020B69B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PlayerSimpleInfo> SimpleInfoList
		{
			get
			{
				return this.simpleInfoList_;
			}
		}

		// Token: 0x170036F8 RID: 14072
		// (get) Token: 0x0600C213 RID: 49683 RVA: 0x0020D4A3 File Offset: 0x0020B6A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ResultUidList
		{
			get
			{
				return this.resultUidList_;
			}
		}

		// Token: 0x0600C214 RID: 49684 RVA: 0x0020D4AB File Offset: 0x0020B6AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SearchPlayerScRsp);
		}

		// Token: 0x0600C215 RID: 49685 RVA: 0x0020D4BC File Offset: 0x0020B6BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SearchPlayerScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.simpleInfoList_.Equals(other.simpleInfoList_) && this.resultUidList_.Equals(other.resultUidList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C216 RID: 49686 RVA: 0x0020D520 File Offset: 0x0020B720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.simpleInfoList_.GetHashCode();
			num ^= this.resultUidList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C217 RID: 49687 RVA: 0x0020D57B File Offset: 0x0020B77B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C218 RID: 49688 RVA: 0x0020D583 File Offset: 0x0020B783
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C219 RID: 49689 RVA: 0x0020D58C File Offset: 0x0020B78C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			this.resultUidList_.WriteTo(ref output, SearchPlayerScRsp._repeated_resultUidList_codec);
			this.simpleInfoList_.WriteTo(ref output, SearchPlayerScRsp._repeated_simpleInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C21A RID: 49690 RVA: 0x0020D5EC File Offset: 0x0020B7EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.simpleInfoList_.CalculateSize(SearchPlayerScRsp._repeated_simpleInfoList_codec);
			num += this.resultUidList_.CalculateSize(SearchPlayerScRsp._repeated_resultUidList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C21B RID: 49691 RVA: 0x0020D650 File Offset: 0x0020B850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SearchPlayerScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.simpleInfoList_.Add(other.simpleInfoList_);
			this.resultUidList_.Add(other.resultUidList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C21C RID: 49692 RVA: 0x0020D6AE File Offset: 0x0020B8AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C21D RID: 49693 RVA: 0x0020D6B8 File Offset: 0x0020B8B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 32U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						goto IL_3F;
					}
				}
				else
				{
					if (num == 82U)
					{
						goto IL_3F;
					}
					if (num == 106U)
					{
						this.simpleInfoList_.AddEntriesFrom(ref input, SearchPlayerScRsp._repeated_simpleInfoList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_3F:
				this.resultUidList_.AddEntriesFrom(ref input, SearchPlayerScRsp._repeated_resultUidList_codec);
			}
		}

		// Token: 0x04004E63 RID: 20067
		private static readonly MessageParser<SearchPlayerScRsp> _parser = new MessageParser<SearchPlayerScRsp>(() => new SearchPlayerScRsp());

		// Token: 0x04004E64 RID: 20068
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E65 RID: 20069
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04004E66 RID: 20070
		private uint retcode_;

		// Token: 0x04004E67 RID: 20071
		public const int SimpleInfoListFieldNumber = 13;

		// Token: 0x04004E68 RID: 20072
		private static readonly FieldCodec<PlayerSimpleInfo> _repeated_simpleInfoList_codec = FieldCodec.ForMessage<PlayerSimpleInfo>(106U, PlayerSimpleInfo.Parser);

		// Token: 0x04004E69 RID: 20073
		private readonly RepeatedField<PlayerSimpleInfo> simpleInfoList_ = new RepeatedField<PlayerSimpleInfo>();

		// Token: 0x04004E6A RID: 20074
		public const int ResultUidListFieldNumber = 10;

		// Token: 0x04004E6B RID: 20075
		private static readonly FieldCodec<uint> _repeated_resultUidList_codec = FieldCodec.ForUInt32(82U);

		// Token: 0x04004E6C RID: 20076
		private readonly RepeatedField<uint> resultUidList_ = new RepeatedField<uint>();
	}
}
